<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>药品信息</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
	<meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate">
	<meta HTTP-EQUIV="expires" CONTENT="0">
    <link rel="stylesheet" href="../css/font.css">
    <link rel="stylesheet" href="../css/weadmin.css">
    <script type="text/javascript" src="../lib/JQuary/jquery-3.2.1.min.js"></script>
    <script src="../lib/layui/layui.all.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/admin.js"></script>
    <script type="text/javascript" src="../js/main.js"></script>
	<script type="text/javascript" src="../js/base.js"></script>

    <link rel="stylesheet" type="text/css" href="../lib/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="../lib/bootstrap/css/bootstrap-datetimepicker.min.css"/>
    <script type="text/javascript" src="../lib/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../lib/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript" src="../lib/bootstrap/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="../lib/bootstrap/js/locales/bootstrap-datetimepicker.zh-CN.js"
            charset="UTF-8"></script>


</head>

<style>

	.modallabel{
		width: 120px;
	}
</style>

<!--<script>-->
    <!--if (GetSessionKeyVale('username') == '') {-->
        <!--parent.location.href = "/login.html"-->
    <!--}-->
<!--</script>-->

<body>

<div class="weadmin-body">
	<div class="layui-row">
		<form class="layui-form layui-col-md12 we-search">
            <!--状态：-->
            <div class="layui-input-inline">
                <select id="status">
                    <option value="">全部</option>
                    <option value="0">正常</option>
                    <option value="1">停用</option>
                </select>
            </div>
			搜索：
			<div class="layui-inline">
				<input type="text" style="width: 200px" name="username" id="condition" placeholder="请输入药品简码" autocomplete="off" class="layui-input">
			</div>
			<div class="layui-input-inline layui-form" lay-filter='sel_srf'>
				<select id="srf" class="select">
					<option value="py" selected="selected">拼音</option>
					<option value="wb">五笔</option>
					<option value="zdy">自定义</option>
				</select>
			</div>
			<button type="button" class="layui-btn" id="btnSearch" style="margin-left:10px"><i class="layui-icon">&#xe615;</i>查询</button>
			<button type="button" class="layui-btn" id="adddrug"><i class="layui-icon"></i>添加</button>
		</form>
	</div>

	<div class="ui_content seatitle">
		<div class="box_top">药品信息</div>
	</div>

	<div id="DrugList" lay-filter="useruv" ></div>　

	<script type="text/html" id="edittype">
		<a title="编辑">
			<span class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">编辑</span>
		</a>
		<a class="offon"  title="启用">
			<span class="layui-btn layui-btn-normal layui-btn-xs" lay-event="stop">停用</span>
		</a>
	</script>


</div>


<div class="modal col-lg-12 col-xs-12" style="padding: 0px" id="AdddrugForm" tabindex="-1" role="dialog" aria-labelledby="aFormModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="margin: 10px auto;width: 700px" >
		<div class="modal-content" >
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">x</span></button>
				<h4 class="modal-title" >编辑药品信息</h4>
			</div>
			<div class="modal-body">
				<div class="layui-form">
					<div class="layui-form-item">
						<div class="layui-input-inline" style="display: none">
							<input type="text" name="drug_id" id="drug_id" autocomplete="off" class="layui-input" disabled="disabled" >
						</div>
						<label for="drug_name" class="modallabel layui-form-label ">
							药品名称
						</label>
						<div class="layui-input-inline">
							<input type="text" id="drug_name" placeholder="请输入药品名称" name="drug_name" autocomplete="off" class="layui-input">
						</div>
						<label for="drug_specifications" class="modallabel layui-form-label ">
							药品规格
						</label>
						<div class="layui-input-inline">
							<input type="text" id="drug_specifications" placeholder="请输入药品规格" name="drug_specifications" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label for="drug_unit" class="modallabel layui-form-label ">
							药品单位
						</label>
						<div class="layui-input-inline">
							<input type="text" id="drug_unit" placeholder="请输入药品单位" name="drug_unit" autocomplete="off" class="layui-input">
						</div>
						<label for="zdy" class="modallabel layui-form-label ">
							自定义码
						</label>
						<div class="layui-input-inline">
							<input type="text" id="zdy" placeholder="药品自定义码（可选）" name="zdy" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label for="price_in" class="modallabel layui-form-label ">
							入库价
						</label>
						<div class="layui-input-inline">
							<input type="text" id="price_in" placeholder="默认入库价" name="price_in" autocomplete="off" class="layui-input">
						</div>
						<label for="price_out" class="modallabel layui-form-label ">
							出库价
						</label>
						<div class="layui-input-inline">
							<input type="text" id="price_out" placeholder="默认出库价" name="price_out" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="layui-btn"  id="btnAdddrugConfirm">确认</button>
						<button type="button" class="layui-btn layui-btn-defalut" data-dismiss="modal">关闭</button>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>




<script>
    layui.use('laydate', function() {
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#startday' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#endday' //指定元素
        });
    });


</script>

<script type="text/javascript" src="../js/sys-druginfo.js"></script>
</body>

</html>